import request from '../request/request'
import API from '../request/api'

export default {
  add(param) {
    return request.post(API.shoppingCart, param)
  },
  getCart() {
    return request.get(API.shoppingCart)
  },
  clearCart() {
    return request.delete(API.shoppingCart)
  },
}
